package com.ws.entity;

import lombok.Data;

/**
 * @author 王硕
 * @version jdk21
 * @className Bird
 * @description
 * @date 2024/11/7 21:49
 */

public class Bird extends Animal{
    private String color;

    public Bird(String name, int age, String color) {
        super(name, age);
        this.color = color;
    }

    // 飞的行为
    public void fly() {
        System.out.println(getName() + "正在飞");
    }
}
